/*Copyright (C) 2009 - 2011 MASSART GAUTHIER

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#include "../headers.h"

void pui_menu(void) {

	long choix_menu = 0;
	char *contenu_menu = "Jouer seul\nJouer à deux\nJouer au mode 42 tours seul\nJouer au mode 42 tours à deux\nRevenir au menu principal\n", *contenu_titre = "MENU DU PUISSANCE 4";

	while(choix_menu < 5) {
		clear();
		choix_menu = afficher_menu_jeu(contenu_menu, contenu_titre);

		if(choix_menu == 1) {
			pui_main(3);
		}
		else if(choix_menu == 2) {
			pui_main(1);
		}
		else if(choix_menu == 3) {
			pui_main(4);
		}
		else if(choix_menu == 4) {
			pui_main(2);
		}
	}
}
